package com.syni.mdd.yhd.common.all.dao.jpa;

import com.google.protobuf.Int32Value;
import com.syni.mdd.yhd.common.all.dao.BaseJPADao;
import com.syni.mdd.yhd.common.all.entity.BmsUserBusinessAuth;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

public interface BmsUserBusinessAuthDao extends BaseJPADao<BmsUserBusinessAuth,Integer> {
    List<BmsUserBusinessAuth> findByBmsUserIdIn(Set userIds);

    List<BmsUserBusinessAuth> findByBmsUserId(Integer userId);

    Page<BmsUserBusinessAuth> findByBmsUserId(Integer userId, Pageable pageable);

    List<BmsUserBusinessAuth> findByBmsBusinessId(Integer businessId);

    List<BmsUserBusinessAuth> findByLicenseName(String licenseName);

    List<BmsUserBusinessAuth> findByLicenseNameAndBmsUserId(String licenseName, Integer userId);
}
